package com.itggm.service;

import com.itggm.DTO.UserPageDTO;
import com.itggm.pojo.User;
import com.itggm.response.ResponseResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

public interface UserService {


    ResponseResult login(String username, String password, String code, HttpServletRequest request);

    ResponseResult personalInfo(HttpSession session);

    ResponseResult editPersonalInfo(User user);

    ResponseResult editPersonalPwd(String oldPassword, String newPassword, HttpSession session);



    ResponseResult addUser(User user);


    ResponseResult deleteBatch(List<Integer> ids);

    ResponseResult editUser(User user);

    ResponseResult resetPassword(Integer id);

    ResponseResult page(UserPageDTO userPageDTO);
}
